@extends('layouts.page')

@section('title', '用户管理')

@section('block')
    <div class="layui-inline">
        <button class="layui-btn layui-btn-normal" id="addUser">增加用户</button>
    </div>
@endsection

@section('body')
<table class="layui-table" lay-skin="line" lay-data="{height: 'full-20'}">
    <thead>
        <tr>
            <th>姓名</th>
            <th>手机号码</th>
            <th>微信昵称</th>
            <th>小程序ID</th>
            <th>是否禁用</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td></td>
        </tr>
    </tbody>
</table>
@endsection

@section('js')
<script type="text/javascript">
    layui.use(['layer', 'jquery'], function () {
        var layer = layui.layer,
            $ = layui.jquery


        $('#addUser').click(function () {
            var index = layer.open({
                type: 2,
                title: false,
                area: ['800px', '500px'],
                shadeClose: true,
                content: "{{ url('/staff/user/create') }}"
            })
        })

        function closeLayer() {
            layer.index.close()
        }
    })
</script>
@endsection